#!/usr/bin/env python
#coding: utf-8
'''
Created on 2017年4月19日

@author: Administrator
'''
from django.conf import settings
from common import settings as common_settings

#SPHINX
SPHINX_SERVER = settings.SPHINX_SERVER
SPHINX_PORT = settings.SPHINX_PORT

ERROR = settings.ERROR
DEFAULT_COMMAND_USER = settings.DEFAULT_COMMAND_USER
StateEnum = common_settings.StateEnum
get_state_desc = common_settings.get_state_desc

ARTICLE_MEDIA_PATH = "article/"

ES_INDEX_ARTICLE_LIST = 'es_index_article_list'
ES_INDEX_ARTICLE_LIST_TYPE = 'article_list'

class SourceEnum:
    DOUBAN_GROUP = 0
    DOUBAN_NOTE = 1

SOURCE_URL_CHOICES = (
    (SourceEnum.DOUBAN_GROUP, "https://www.douban.com/group/topic/"),
    (SourceEnum.DOUBAN_NOTE, "https://www.douban.com/note/"),
)
SOURCE_CHOICES = (
    (SourceEnum.DOUBAN_GROUP, u'豆瓣小组'),
    (SourceEnum.DOUBAN_NOTE, u'豆瓣日记'),
)


